<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script type="text/javascript">
    /*
    * screen 对象获取设备的信息
    * */
    console.dir(window.screen);
    console.dir(screen);
    // 获取显示器的宽高
    console.log(screen.width);
    console.log(screen.height);
</script>

</html>
